Standardize and enforce branch names#39
Merged
c-vigo merged 6 commits intofeature/37-automate-standardize-repository-setupfrom Jan 30, 2026
Merged
Conversation
- Exclude issue and template docs from .github_data - Autofix shellcheck - Autofix pymarkdown - Add license compliance check
- Added pre-commit hook for enforcing branch naming convention - Updated pre-commit configuration in the repository and workspace - Included integration tests for branch name validation - Documented cursor rules for branch naming and issue workflow
0b335ad
into
feature/37-automate-standardize-repository-setup
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements initial branching strategy and enforcement for the devcontainer template (issue #38): branch naming convention, pre-commit enforcement, Cursor rules for the issue-to-branch workflow, and integration tests.
This provides a reproducible baseline for branch naming that can be extended with branch protection and CI enforcement in follow-up work.
Related Issue(s)
Type of Change
Changes Made
Branch name enforcement (pre-commit)
<type>/<issue>-<summary>(e.g.feature/38-standardize-branching-strategy-enforcement)..pre-commit-config.yamland inassets/workspace/.pre-commit-config.yamlso installed workspaces get the same hook.Cursor rules
.cursor/rules/branch-naming.mdc: documents topic branch format, branch types (feature, bugfix, hotfix, release, docs, test, refactor), and step-by-step workflow for creating and linking branches viagh issue develop(check linked branch, infer type, short summary, create/checkout, keep in sync).Integration tests
test_valid_branch_names_commit_succeeds: creates a valid branch (e.g.feature/123-test-branch), stages a file, runs pre-commit; expects success.test_invalid_branch_names_commit_fails: uses invalid names (e.g.featur/123-typo,bugfix/missing-issue-number), runs pre-commit; expects failure and branch-related output.{branch_name}instead of the Python variable; switched to f-strings so the actual branch name is passed and the branch-name hook is tested correctly.Testing
just test)Checklist
[Unreleased]sectionAdditional Notes